<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<p>
			<input type="text" name="uname" id="uname" value="" />
		</p>
		<p>
			<input type="text"  id="password" value="" />
		</p>
		<input type="button" name="btn" id="btn" value="注册" />
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		$("#btn").click(function(){
			$.ajax({
				type:"post",
				url:"http://localhost:3000/register",
				async:true,
				data:{
					name:$("#uname").val(),
					password:$("#password").val()
				},
				success:function(res){
					console.log(res)
				}
			});
		})
		
	</script>
</html>
